<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">.
            <div class="layui-form-item">
                <label class="layui-form-label">所属层级 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="hidden" name="parent_id">
                    <input type="text" data-url="{:url('admin/system.menu/add')}" class="layui-input menuLevel" placeholder="顶级菜单">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required" placeholder="菜单名称" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">链接 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="url_link" required  lay-verify="required" placeholder="链接:https://www.baidu.com/" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">状态  <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="radio" name="status" value="1" checked title="正常">
                    <input type="radio" name="status" value="0" title="异常">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">视图  <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="radio" name="is_view" value="1" checked title="是">
                    <input type="radio" name="is_view" value="0" title="否">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">图标</label>
                <div class="layui-input-block">
                    <button type="button" class="layui-btn layui-btn-xs" id="test1">
                        <i class="layui-icon">&#xe67c;</i>
                        选择图片
                    </button>
                    <table class="layui-table icon-table" id="app-photo">
                        <tr>
                            <td>
                                <input type="text" class="layui-input" name="icon" value="">
                            </td>
                            <td>
                                <img src="" alt="" width="150" >
                            </td>
                            <td>
                                <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs del-photos-btn">删除</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                    <!--<a href="{:url('admin/system.menu/index')}" class="layui-btn layui-btn-primary" >返回</a>-->
                </div>
            </div>
        </form>
    </div>
</div>
